<?php echo $this->validation->error_string; ?>
<?php echo form_open($this->curl .'/edit/'.$this->validation->faq_id, 'id="create_form"')?>
<?php echo form_hidden('faq_id', $this->validation->faq_id)?>
	
<table class="nostyle forma" width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
	<th style="width: 180px;"><?php $this->load->view('_elements/obligatory.php'); ?><?php echo $this->faq_model->fields['faq_question']?></th>
	<td><div class="input_300"><?php echo form_input('faq_question', $this->validation->faq_question, 'class="input-text"')?></div></td>
</tr>
<tr>
	<th><?php $this->load->view('_elements/obligatory.php'); ?><?php echo $this->faq_model->fields['faq_answer']?></th>
	<td><textarea name="faq_answer" id="message"><?php echo $this->validation->faq_answer ?></textarea></td>
</tr>
<tr>
	<th><?php $this->load->view('_elements/obligatory');?><?php echo $this->faq_model->fields['faq_status']?></th>
	<td><div class="input_300"><?php echo form_dropdown('faq_status', $this->faq_model->status, array($this->validation->faq_status), null, TRUE)?></div></td>
</tr>
<tr>
	<td colspan="2">&nbsp;</td>
</tr>
<tr>
	<td></td>
	<td>
		<input name="edit" type="submit" class="btn btn_save" id="submit" value="<?php echo T_('Submit')?>" />
		<input name="reset"  type="reset"  class="btn btn_clear" id="reset" value="<?php echo T_('Reset')?>" onclick="$('#create_form input[type=text]').val('');" />
		<input name="delete" type="button" class="btn btn_delete" id="delete" value="<?php echo T_('Delete')?>" onclick="if (confirm('<?php echo T_('Are you sure you want to delete this FAQ Item?')?>')) location='/admin/<?php echo $this->curl; ?>/delete/<?php echo $this->validation->faq_id?>';return false;" />		
	</td>
</tr>
</table>

<?php echo form_close()?>